package mya_dc.master_server.database;

import java.io.Serializable;

import mya_dc.master_server.MasterServerGUI;

/**
 * Stores Slave GUI information to be serialized to a file
 * 
 * @author      Yuval Shimron
 * <br>			MYA
 */
public class GUIdata implements Serializable
{
	private static final long serialVersionUID = 1L;
	public String sClientsPort;
	public String sServersPort;
	public String sSlavesort;
	public boolean bMinimize;
	public boolean bNotify;
	private transient MasterServerGUI mParentGUI ;
	
	/**
	 * Constructor - Stores data from GUI
	 *
	 * @param	ParentGUI - The GUI class
	 */
	public GUIdata(MasterServerGUI ParentGUI)
	{
		mParentGUI = ParentGUI;
		sClientsPort = mParentGUI.clientsListenPort.getText(); 
		sServersPort = mParentGUI.serversListenPort.getText();
		sSlavesort = mParentGUI.slavesListenPort.getText();
		bMinimize = mParentGUI.m_minimizeOnConnectionCheckBox.isSelected();
		bNotify = mParentGUI.m_notifyCheckBox.isSelected();
	}
}
